package com.acme.javaschool.intense.sems.sem2concurrency.pool.data;

public class StringSource implements ObjectSource<String> {
    private int num = 1;
    private final String template = "This is String #";

    @Override
    public PoolableObject<String> newInstance() {
        return new PoolableObject<>(template + num++);
    }
}
